﻿namespace WP7Contrib.Collections.Tests.Views
{
    using Microsoft.Phone.Controls;
    using Microsoft.Silverlight.Testing;

    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            // set up unit testing
            Content = UnitTestSystem.CreateTestPage();
            var imtp = Content as IMobileTestPage;

            if (imtp != null)
            {
                BackKeyPress += (x, xe) => xe.Cancel = imtp.NavigateBack();
            }
        }
    }
}